package com.xiaoming.backend.entity.db.example;

import java.util.ArrayList;
import java.util.List;

public class WareHousePOExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WareHousePOExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWarehouseIdIsNull() {
            addCriterion("warehouse_id is null");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdIsNotNull() {
            addCriterion("warehouse_id is not null");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdEqualTo(Integer value) {
            addCriterion("warehouse_id =", value, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdNotEqualTo(Integer value) {
            addCriterion("warehouse_id <>", value, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdGreaterThan(Integer value) {
            addCriterion("warehouse_id >", value, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("warehouse_id >=", value, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdLessThan(Integer value) {
            addCriterion("warehouse_id <", value, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdLessThanOrEqualTo(Integer value) {
            addCriterion("warehouse_id <=", value, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdIn(List<Integer> values) {
            addCriterion("warehouse_id in", values, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdNotIn(List<Integer> values) {
            addCriterion("warehouse_id not in", values, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdBetween(Integer value1, Integer value2) {
            addCriterion("warehouse_id between", value1, value2, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("warehouse_id not between", value1, value2, "warehouseId");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoIsNull() {
            addCriterion("warehouse_sqno is null");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoIsNotNull() {
            addCriterion("warehouse_sqno is not null");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoEqualTo(String value) {
            addCriterion("warehouse_sqno =", value, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoNotEqualTo(String value) {
            addCriterion("warehouse_sqno <>", value, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoGreaterThan(String value) {
            addCriterion("warehouse_sqno >", value, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoGreaterThanOrEqualTo(String value) {
            addCriterion("warehouse_sqno >=", value, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoLessThan(String value) {
            addCriterion("warehouse_sqno <", value, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoLessThanOrEqualTo(String value) {
            addCriterion("warehouse_sqno <=", value, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoLike(String value) {
            addCriterion("warehouse_sqno like", value, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoNotLike(String value) {
            addCriterion("warehouse_sqno not like", value, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoIn(List<String> values) {
            addCriterion("warehouse_sqno in", values, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoNotIn(List<String> values) {
            addCriterion("warehouse_sqno not in", values, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoBetween(String value1, String value2) {
            addCriterion("warehouse_sqno between", value1, value2, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseSqnoNotBetween(String value1, String value2) {
            addCriterion("warehouse_sqno not between", value1, value2, "warehouseSqno");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameIsNull() {
            addCriterion("warehouse_name is null");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameIsNotNull() {
            addCriterion("warehouse_name is not null");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameEqualTo(String value) {
            addCriterion("warehouse_name =", value, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameNotEqualTo(String value) {
            addCriterion("warehouse_name <>", value, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameGreaterThan(String value) {
            addCriterion("warehouse_name >", value, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameGreaterThanOrEqualTo(String value) {
            addCriterion("warehouse_name >=", value, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameLessThan(String value) {
            addCriterion("warehouse_name <", value, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameLessThanOrEqualTo(String value) {
            addCriterion("warehouse_name <=", value, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameLike(String value) {
            addCriterion("warehouse_name like", value, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameNotLike(String value) {
            addCriterion("warehouse_name not like", value, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameIn(List<String> values) {
            addCriterion("warehouse_name in", values, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameNotIn(List<String> values) {
            addCriterion("warehouse_name not in", values, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameBetween(String value1, String value2) {
            addCriterion("warehouse_name between", value1, value2, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNameNotBetween(String value1, String value2) {
            addCriterion("warehouse_name not between", value1, value2, "warehouseName");
            return (Criteria) this;
        }

        public Criteria andFacilityIdIsNull() {
            addCriterion("facility_id is null");
            return (Criteria) this;
        }

        public Criteria andFacilityIdIsNotNull() {
            addCriterion("facility_id is not null");
            return (Criteria) this;
        }

        public Criteria andFacilityIdEqualTo(Long value) {
            addCriterion("facility_id =", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdNotEqualTo(Long value) {
            addCriterion("facility_id <>", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdGreaterThan(Long value) {
            addCriterion("facility_id >", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdGreaterThanOrEqualTo(Long value) {
            addCriterion("facility_id >=", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdLessThan(Long value) {
            addCriterion("facility_id <", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdLessThanOrEqualTo(Long value) {
            addCriterion("facility_id <=", value, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdIn(List<Long> values) {
            addCriterion("facility_id in", values, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdNotIn(List<Long> values) {
            addCriterion("facility_id not in", values, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdBetween(Long value1, Long value2) {
            addCriterion("facility_id between", value1, value2, "facilityId");
            return (Criteria) this;
        }

        public Criteria andFacilityIdNotBetween(Long value1, Long value2) {
            addCriterion("facility_id not between", value1, value2, "facilityId");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityIsNull() {
            addCriterion("warehouse_capacity is null");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityIsNotNull() {
            addCriterion("warehouse_capacity is not null");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityEqualTo(Long value) {
            addCriterion("warehouse_capacity =", value, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityNotEqualTo(Long value) {
            addCriterion("warehouse_capacity <>", value, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityGreaterThan(Long value) {
            addCriterion("warehouse_capacity >", value, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityGreaterThanOrEqualTo(Long value) {
            addCriterion("warehouse_capacity >=", value, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityLessThan(Long value) {
            addCriterion("warehouse_capacity <", value, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityLessThanOrEqualTo(Long value) {
            addCriterion("warehouse_capacity <=", value, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityIn(List<Long> values) {
            addCriterion("warehouse_capacity in", values, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityNotIn(List<Long> values) {
            addCriterion("warehouse_capacity not in", values, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityBetween(Long value1, Long value2) {
            addCriterion("warehouse_capacity between", value1, value2, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseCapacityNotBetween(Long value1, Long value2) {
            addCriterion("warehouse_capacity not between", value1, value2, "warehouseCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityIsNull() {
            addCriterion("warehouse_remaining_capacity is null");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityIsNotNull() {
            addCriterion("warehouse_remaining_capacity is not null");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityEqualTo(Long value) {
            addCriterion("warehouse_remaining_capacity =", value, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityNotEqualTo(Long value) {
            addCriterion("warehouse_remaining_capacity <>", value, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityGreaterThan(Long value) {
            addCriterion("warehouse_remaining_capacity >", value, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityGreaterThanOrEqualTo(Long value) {
            addCriterion("warehouse_remaining_capacity >=", value, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityLessThan(Long value) {
            addCriterion("warehouse_remaining_capacity <", value, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityLessThanOrEqualTo(Long value) {
            addCriterion("warehouse_remaining_capacity <=", value, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityIn(List<Long> values) {
            addCriterion("warehouse_remaining_capacity in", values, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityNotIn(List<Long> values) {
            addCriterion("warehouse_remaining_capacity not in", values, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityBetween(Long value1, Long value2) {
            addCriterion("warehouse_remaining_capacity between", value1, value2, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseRemainingCapacityNotBetween(Long value1, Long value2) {
            addCriterion("warehouse_remaining_capacity not between", value1, value2, "warehouseRemainingCapacity");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeIsNull() {
            addCriterion("warehouse_waste_type is null");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeIsNotNull() {
            addCriterion("warehouse_waste_type is not null");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeEqualTo(Long value) {
            addCriterion("warehouse_waste_type =", value, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeNotEqualTo(Long value) {
            addCriterion("warehouse_waste_type <>", value, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeGreaterThan(Long value) {
            addCriterion("warehouse_waste_type >", value, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeGreaterThanOrEqualTo(Long value) {
            addCriterion("warehouse_waste_type >=", value, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeLessThan(Long value) {
            addCriterion("warehouse_waste_type <", value, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeLessThanOrEqualTo(Long value) {
            addCriterion("warehouse_waste_type <=", value, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeIn(List<Long> values) {
            addCriterion("warehouse_waste_type in", values, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeNotIn(List<Long> values) {
            addCriterion("warehouse_waste_type not in", values, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeBetween(Long value1, Long value2) {
            addCriterion("warehouse_waste_type between", value1, value2, "warehouseWasteType");
            return (Criteria) this;
        }

        public Criteria andWarehouseWasteTypeNotBetween(Long value1, Long value2) {
            addCriterion("warehouse_waste_type not between", value1, value2, "warehouseWasteType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}